<template>
  <div class="setting">
    <div class="setting-menu">
      <el-menu class="el-menu-vertical" :router="true" default-active="/setting/timer_config">
        <el-menu-item index="/setting/timer_config">
          <span>设置</span>
        </el-menu-item>
        <el-menu-item index="/setting/alarm_clock_config">
          <span>闹钟</span>
        </el-menu-item>
      </el-menu>
    </div>
    <div class="setting-content">
      <router-view v-slot="{ Component }">
        <component :is="Component" />
      </router-view>
    </div>
  </div>
</template>

<script setup lang="ts">

</script>

<style lang="scss" scoped>
.setting {
  width: 100%;
  height: 100%;
  display: flex;

  .setting-menu {
    height: 100%;
    width: 150px;
    // border-right: 1px solid #ccc;

    .el-menu-vertical {
      min-height: 371px;
    }
  }

  .setting-content {
    height: 100%;
    flex: 1;
    // background-color: aqua;
  }
}
</style>
